package com.ruoyi.client.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.client.domain.entity.BlogTags;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 收藏 / 历史记录
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CHArticleVo {
    private Long id;

    /**
     * 标题
     */
    private String title;

    /**
     * 摘要
     */
    @TableField("abstract")
    private String articleAbstract;

    /**
     * 内容
     */
    private String content;

    /**
     * 封面图片
     */
    private String coverImg;

    /**
     * 浏览量
     */
    private Integer watchNum;

    /**
     * 点赞数
     */
    private Integer likeNum;

    /**
     * 评论数
     */
    private Integer commentNum;
    private String url;
    private BlogTags tags;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
